{% extends '/layout.html' %}

{% block title %}参赛作品评选系统 - 欢迎登录{% endblock %}

{% block body %}
<h1>欢迎登录</h1>

<form action="{{ url_for('users.login') }}" method="POST">

    {{ form.hidden_tag() }}
    <div>
        <span>{{ form.name.label }}</span>
        &nbsp;{{ form.name }}
        {{ macros.show_errors(form.name.errors) }}
    </div>

    <div>
        <span>{{ form.password.label }}</span>
        &nbsp;{{ form.password }}
        {{ macros.show_errors(form.password.errors) }}
    </div>


    <div>{{ form.submit }}</div>
</form>
<a href="{{ url_for('users.register')}}">去注册</a>
{% endblock %}